<#macro template _title="--" _css=[] _js=[]><#-- _title:页面标题 -->
<!DOCTYPE html>
<html>
<head>
<#-- 简化路径,href有兼容问题 -->
<base id="base" title="${base!}/">
<#include "template_head.ftl"/><#-- 全站样式 -->
<title>${_title}</title>
<#--<script src="https://unpkg.com/vue/dist/vue.min.js"></script>-->
<script src="//cdn.bootcss.com/vue/2.3.3/vue.min.js"></script>
<#-- js扩展 -->
<#list _js as _j>
<script src="${base!}/${_j}"></script>
</#list>
</head>
<body>
<div class="container">
<nav class="navbar navbar-default navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#nav_collapse">
                <span class="sr-only">切换导航</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="${base!}/">首页</a>
        </div>
        <div class="collapse navbar-collapse" id="nav_collapse" role="navigation">
            <ul class="nav navbar-nav">
                <li><a href="${base!}/user/myInfo">用户信息</a></li>
                <li><a href="${base!}/view/evaluation">教师评教</a></li>
                <li><a href="${base!}/view/chooseCourse">选课</a></li>
                <#if loginUser??>
                <li><a href="javascript:;" onclick="toLocation('user/exit')">退出</a></li>
                <#else>
                <li><a href="${base!}/view/login">登录</a></li>
                </#if>
            </ul>
        </div>
    </div>
</nav>
<div style="padding: 2.5em;"></div>
<#nested><#-- 具体内容  -->
</div>
<!-- Bottom Scripts -->
<#--<script src="${base!}/assets/libs/vconsole-2.5.1/vconsole.min.js"></script>-->
<script src="//cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script src="//cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<#--<script src="${base!}/assets/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="${base!}/assets/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>-->

<script src="${base!}/assets/js/custom.js"></script>
<script src="${base!}/assets/js/webdata.js"></script>
${_pagejs!}
</body>
</html>
</#macro>